<?php

namespace Admin\Controller;

// +----------------------------------------------------------------------
// | 文件 PlatformController.class.php
// +----------------------------------------------------------------------
// | 说明 平台接入的管理
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// | Author: 谢赤心 Legend. <xcx_legender@qq.com>
// +----------------------------------------------------------------------

class PlatformController extends BaseManageController {
	protected $modelName = 'Common/Platform'; // 必须定义
	protected $is_del = false; // 是否真实删除
	protected $modelType = 1;

	protected function _initialize() {
		parent::_initialize();
		$games = A('Api/Game', 'Event')->lists('', 'id,name');
		$games = array_column($games, 'name', 'id');
		$this->assign('allGames', $games);
	}

}